package com.eazy.lksy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eazy.lksy.netty.WebsocketChatServer;

/**
 * @author jzx
 * @desc 即时通讯 
 */
@Controller
@RequestMapping("/online")
public class OnLineController {

	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public void index() {
		 try {
			new WebsocketChatServer(9999).run();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
